//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.0.2723.0
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by wsdl, Version=1.0.2723.0.
// 
namespace Security {
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.Web.Services;
    
    
    [System.Web.Services.WebServiceBindingAttribute(Name="SecureWebServiceSoap", Namespace="http://tempuri.org/")]
    public class SecureWebService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        public Authentication AuthenticationValue;
        
        public SecureWebService() {
            this.Url = "http://localhost/code/WebService/Security/SoapHeaderAuthentication/Server/SoapHea" +
"derAuthentication_cs.asmx";
        }
        
        [System.Web.Services.Protocols.SoapHeaderAttribute("AuthenticationValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ValidUser", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string ValidUser() {
            object[] results = this.Invoke("ValidUser", new object[0]);
            return ((string)(results[0]));
        }
        
        public System.IAsyncResult BeginValidUser(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("ValidUser", new object[0], callback, asyncState);
        }
        
        public string EndValidUser(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
    }
    
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=true)]
    public class Authentication : SoapHeader {
        
        public string User;
        
        public string Password;
    }
}
